| От | lynch@lscorp.com (Richard Lynch) |
|---|---|
| Тема | count and actual data |
| Дата | |
| Msg-id | v02140b36b172882de736@[207.152.64.133] обсуждение |
| Ответы |
Re: count and actual data
|
| Список | pgsql-sql |
Okay, it's really something I need to do in Access (don't ask why), but there's no way I'm going to actually join an Access mailing list. :-) select name from users; gives me: name ---- Steve Bill select count(name) from users; gives me: count ----- 2 Now, I really want the result from the first query, *AND* the count from the second query. select name, count(name) from users; would be fine, even if it did give me the count too many times, but it won't work. So. how does one get both the data and the count as results in table format from a query? -- -- -- "TANSTAAFL" Rich lynch@lscorp.com
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера